/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package canteen.sys.view;

import java.util.List;
import javax.validation.Validation;
import javax.validation.Validator;

/**
 *
 * @author TNT
 */
public interface ActionView<T> {

    Validator validator = Validation.buildDefaultValidatorFactory().getValidator();

    public void deleteRow(int index);

    public void updateRow(T row, int index);

    public void addRow(T row, boolean posion);

    public void showList(List<T> list);

    public void showDetail(T object);

    public T getObject(int index);

    public void setObject(T object);

    public boolean validObject(T object);
}
